<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:49:"D:\webroot\tongji/app/home\view\mcenter/bill.html";i:1543917831;s:48:"D:\webroot\tongji/app/home\view\common/head.html";i:1539420927;s:50:"D:\webroot\tongji/app/home\view\common/footer.html";i:1542422876;}*/ ?>
<!DOCTYPE html>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href='__HOME__/css/aui.css' rel='stylesheet' />
<style>
  .aui-bar-nav{background:white;}
  .aui-bar-nav .aui-btn .aui-iconfont{color:black;}
  body{background:#ffffff;}
  .aui-bar-nav .aui-title{color:black;}
  h1{font-weight:600;font-size:2rem;color:#17204d}
  
  .avatar img{border-radius:10px;width:80%;margin:auto;}
  .nickname{font-weight:bold;font-size:0.8rem;line-height:2rem;}
  
  .bill_list{font-size:0.7rem;line-height:2.5rem;text-align:center;}
  .bill_list .aui-row:nth-child(2n){background:#f9f9f9;}
  .bill_list:nth-child(2n){background:#f8f7f7;}
  hr{border-bottom:1px solid #efefef;margin:15px 0}
  
  .accu div div{box-shadow: 0px 2px 12px #dedede;
    border-radius: 5px;
    margin: 6px;
    padding: 5px 10px;}
   .accu p{color:black;text-align:center;font-weight:bold;}
   .accu span{display:block;font-weight:normal;}
   .accu .title{line-height:2rem;font-size:0.9rem;}
   .accu span i{color:red;font-style:normal}
   
   .accu .aui-col-xs-12{margin-bottom:20px;}
</style>
<body>
   <header class="aui-bar aui-bar-nav">
    <a class="aui-pull-left aui-btn aui-btn-outlined" href='javascript:history.go(-1);'>
        <span class="aui-iconfont aui-icon-left"></span>
    </a>
    <div class="aui-title"></div>
    <a class="aui-pull-right aui-btn aui-btn-outlined"  href='index.html'>
        <span class="aui-iconfont aui-icon-home"></span>
    </a>
  </header>
<div class='aui-content aui-content-padded'>
  <h1>Bill</h1>
  
  <?php if($type == "fos"): ?>
  <div class='aui-row accu'>
  
     <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
     <div class='aui-col-xs-12'>
	    <div class='aui-row'>
	     <p class='aui-col-xs-3 title'><?php echo intval($vo['count']); ?> FOS</p>
	     <p class='aui-col-xs-3'>交易数值<span>0.3%+<i>0.0%</i></span></p>
		 <?php if($vo['is_end'] == 1): ?>
		 <p class='aui-col-xs-3'>交易状态<span style='color:red'>已结束</span></p>
	     <p class='aui-col-xs-3'>交易时间<span>7天</span></p>
		 <?php else: ?>
	     <p class='aui-col-xs-3'>交易状态<span><?php echo fmt_status1($vo['status']); ?></span></p>
	     <p class='aui-col-xs-3'>交易时间<span>
 		    <?php if($vo['status'] == 0): ?>
			  0
			  <?php else: ?>
			 <?php echo get_days($vo['add_time']); endif; ?>
			 天
		 <?php endif; ?>
		 </span></p>
		</div>
	 </div>
	 <?php endforeach; endif; else: echo "" ;endif; ?>
	 
 </div>
<?php endif; if($type == "f"): ?>
   <div class='aui-row aui-row-padded' align=center style='margin:10px 0;font-weight:bold;'>
	 <div class='aui-col-xs-4'>时间</div>
	 <div class='aui-col-xs-4'>数量</div>
	 <div class='aui-col-xs-4'>状态</div>
  </div>
  <div class='aui-row'>
     <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
	 <div class='bill_list' >
	  <div class='aui-row aui-row-padded'>
		 <div class='aui-col-xs-4'><?php echo fmt_date1($vo['add_time']); ?></div>
		 <div class='aui-col-xs-4' align=center><?php echo $vo['count']; ?> F</div>
		 <div class='aui-col-xs-4'><?php echo fmt_status_withdraw($vo['status']); ?></div>
	  </div>
	 </div>
	 <?php endforeach; endif; else: echo "" ;endif; ?>
	 
 </div>
<?php endif; ?>
  
  <div class='aui-row aui-row-padded' align=center style='margin:10px 0;font-weight:bold;display:none;'>
	 <div class='aui-col-xs-4'>时间</div>
	 <div class='aui-col-xs-4'>数量</div>
	 <div class='aui-col-xs-4'>状态</div>
  </div>
  <div style='background:#f9f9f9; height:10px;'></div>
  <div class='bill_list' style='display:none;'>
	  <div class='aui-row aui-row-padded'>
		 <div class='aui-col-xs-4'>2018-0-25 09:43</div>
		 <div class='aui-col-xs-4' align=center>10 TCSN</div>
		 <div class='aui-col-xs-4'>每日签到</div>
	  </div>
	  <div class='aui-row aui-row-padded'>
		 <div class='aui-col-xs-4'>2018-0-25 09:43</div>
		 <div class='aui-col-xs-4' align=center>10 TCSN</div>
		 <div class='aui-col-xs-4'>每日签到</div>
	  </div>
	  <div class='aui-row aui-row-padded'>
		 <div class='aui-col-xs-4'>2018-0-25 09:43</div>
		 <div class='aui-col-xs-4' align=center>10 TCSN</div>
		 <div class='aui-col-xs-4'>每日签到</div>
	  </div>
	  <div class='aui-row aui-row-padded'>
		 <div class='aui-col-xs-4'>2018-0-25 09:43</div>
		 <div class='aui-col-xs-4' align=center>10 TCSN</div>
		 <div class='aui-col-xs-4'>每日签到</div>
	  </div>
  </div>
  
</div>
<script type="text/javascript" src="__HOME__/script/api.js"></script>
<script type="text/javascript" src="__HOME__/script/aui-tab.js"></script>
<script type="text/javascript" src="__HOME__/script/aui-dialog.js" ></script>
<script type="text/javascript" src="__HOME__/script/aui-toast.js" ></script>
<script type="text/javascript" src="__HOME__/js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/static/layer/layer.js"></script>

<script type="text/javascript">
    var type = location.search.replace('?', '');
	if(type==''){
	   $(".accu").remove();
	}
	
    var dialog = new auiDialog({})
	function tips(){
	    dialog.alert({
			title:"提示",
			msg:"敬请期待!",
			buttons:['确定']
		});
	}
</script>
</body>
</html>